<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <title>库管分析决策</title>
  <script type="text/javascript">
      Ext.onReady(function () {
          var tabs = Ext.create('Ext.tab.Panel', {
              renderTo:'purchase_analysis',
              width:screenWidth - 160,
              height:screenHeight - 190,
              activeTab:0,
              frame:true,
              defaults:{autoHeight:true},
              items:[
                  {
                      title:'库存查询',
                      autoLoad:{url:'/stock/index', params:'foo=bar&wtf=1', scripts:true}
                  },
                  {
                      title:'采购入库统计分析',
                      autoLoad:{url:'/stock/statisticsPurchaseEntryView', params:'foo=bar&wtf=1', scripts:true},
                      listeners:{
                          activate:function (tab) {
                              tab.loader.load();
                          }
                      }
                  },
                  {
                      title:'销售出库统计分析',
                      autoLoad:{url:'/stock/statisticsSaleDeliveryView', params:'foo=bar&wtf=1', scripts:true},
                      listeners:{
                          activate:function (tab) {
                              tab.loader.load();
                          }
                      }
                  },
                  {
                      title:'销售退货返库统计分析',
                      autoLoad:{url:'/stock/statisticsSaleReturnedEntryView', params:'foo=bar&wtf=1', scripts:true},
                      listeners:{
                          activate:function (tab) {
                              tab.loader.load();
                          }
                      }
                  },
                  {
                      title:'借货出库统计分析',
                      autoLoad:{url:'/stock/statisticsLoanDeliveryView', params:'foo=bar&wtf=1', scripts:true},
                      listeners:{
                          activate:function (tab) {
                              tab.loader.load();
                          }
                      }
                  },
                  {
                      title:'产品库存预警统计',
                      autoLoad:{url:'/purchase_order/productStockRemindReport', params:'foo=bar&wtf=1', scripts:true},
                      listeners:{
                          activate:function (tab) {
                              tab.loader.load();
                          }
                      }
                  },
                  {
                      title:'采购订单与入库单产品对比分析',
                      autoLoad:{url:'/purchase_order/productNeedEntry', params:'foo=bar&wtf=1', scripts:true},
                      listeners:{
                          activate:function (tab) {
                              tab.loader.load();
                          }
                      }
                  },
                  {
                      title:'销售与出库产品对比分析',
                      autoLoad:{url:'/sale_order/productNeedDelivery', params:'foo=bar&wtf=1', scripts:true},
                      listeners:{
                          activate:function (tab) {
                              tab.loader.load();
                          }
                      }
                  }
              ]
          });
      })
  </script>
</head>
<body>
<div id="purchase_analysis"></div>
</body>
</html>